package com.t2c.tibetantochinese.utils;

import android.app.Activity;
import android.content.Intent;

import com.t2c.tibetantochinese.MainActivity;
import com.t2c.tibetantochinese.me.CodeActivity;
import com.t2c.tibetantochinese.me.FeedBackActivity;
import com.t2c.tibetantochinese.regandlogin.LoginActivity;
import com.t2c.tibetantochinese.regandlogin.RegisterActivity;

/**
 * Created by zoulu on 16/6/18.
 * 跳转工具类
 */

public class IntentUtil {
    public static void gotoMain(Activity act){
        Intent intent = new Intent(act, MainActivity.class);
        act.startActivity(intent);
        act.finish();
    }

    public static void gotoLogin(Activity act){
        Intent intent = new Intent(act, LoginActivity.class);
        act.startActivity(intent);
    }

    public static void gotoRegister(Activity act){
        Intent intent = new Intent(act, RegisterActivity.class);
        act.startActivity(intent);
    }

    public static void gotoFeedBack(Activity act){
        Intent intent = new Intent(act, FeedBackActivity.class);
        act.startActivity(intent);
    }

    public static void gotoCode(Activity act){
        Intent intent = new Intent(act, CodeActivity.class);
        act.startActivity(intent);
    }

}
